﻿using System;

namespace Gonte.Xml.Serialization
{
    public interface IXmlSerializableObject
    {
        /// <summary>
        /// Retrieves the serializer for the object
        /// </summary>
        /// <returns>The serializer for the object</returns>
        XmlObjectSerializer GetSerializer();

        /// <summary>
        /// Retrieves the deserializer for the object
        /// </summary>
        /// <returns>The serializer for the object</returns>
        XmlObjectDeserializer GetDeserializer();
    }
}
